# -*- coding: utf-8 -*-
from django.db import models

# Create your models here.
class BuildByAge(models.Model):
    GENDER_CHOICES = (
        (u'M', u'Male'),
        (u'F', u'Female'),
    )
    report_year = models.DateField()
    parts = models.CharField(max_length = 50)
    age = models.IntegerField()
        
    avg = models.FloatField()
    dev = models.FloatField()
    
    top_5 = models.FloatField()
    top_10 = models.FloatField()
    top_25 = models.FloatField()
    top_50 = models.FloatField()
    top_75 = models.FloatField()
    top_90 = models.FloatField()
    top_95 = models.FloatField()
     
    gender = models.CharField(max_length = 2, choices = GENDER_CHOICES)
    
    def __unicode__(self):
        msg = 'age : %d' % self.age
        return msg  
#
#class AdviceByAge(models.Model):
#    age = models.IntegerField(max_length = 50)
#    title = models.CharField(max_length = 100, unique = True)    
#    info = models.TextField()
#    
#    def __unicode__(self):
#        msg = self.title
#        return msg   